import java.util.Calendar;
import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请你输入年份:");
        int year=sc.nextInt();
        Calendar C = Calendar.getInstance();
        C.set(year,2,1);
        C.add(C.DATE,-1);
        int i = C.get(Calendar.DATE);
        if (i>28){
            System.out.println("为闰年，共366天" );
        }else {
            System.out.println("为闰年，共365天");
        }
        }

    }

